.cart-layout {
    position: relative;
}

/*头部*/
.cart-header {
    h4 {
        text-align: center;
        line-height: 44px;
        font-size: 24px;
    }
}

/*安全模块*/
.cart-safe {
    width: 100%;
    height: 33px;
    border-bottom: 1px solid #ccc;
    text-align: center;
    line-height: 33px;
    p {
        display: inline-block;
        padding-left: 33px;
        background: url(../images/safe_icon.png) no-repeat 7px 7px;
        background-size: 18px;
    }
}

/*商品模块*/
.cart-product {
    margin-top: 10px;
    .check {
        position: absolute;
        left: 7px;
        top: 7px;
        height: 20px;
        width: 20px;
        background-position: -180px -89px;
    }
    .p-title {
        position: relative;
        height: 34px;
        border-top: 1px solid #ccc;
        border-bottom: 1px solid #ccc;
        padding-left: 34px;
        line-height: 32px;
        font-size: 12px;
        color: #999;
       
        .logo {
            width: 20px;
            height: 15px;
            margin-top: 9px;
        }
        .text {
            margin-left: 10px;
        }
        .free {
            margin-right: 10px;
        }
    }
    .p-main {
        .item {
            position: relative;
            height: 100px;
            padding-left: 34px;
            border-bottom: 1px solid #ccc;
            .content {
                padding: 10px;
                height: 100px;
                .detail {
                    float: left;
                    height: 80px;
                    width: 80px;
                }
                .info {
                    /*BFC布局*/
                    overflow: hidden;
                    height: 100%;
                    padding: 0 10px;
                    .text {
                        overflow: hidden;
                        font-size: 14px;
                        line-height: 16px;
                        height: 32px;
                    }
                    .options {
                        margin-top: 15px;
                        .num >* {
                            float: left;
                            width: 36px;
                            height: 30px;
                            border: 1px solid #ccc;
                            text-align: center;
                            line-height: 28px;
                            color: #999;
                        }
                        .num {
                            input {
                                border-left: none;
                                border-right: none;
                            }
                            span {
                                cursor: pointer;
                            }
                        }
                        .delete {
                            width: 18px;
                            height: 22px;
                            cursor: pointer;
                            .del-up {
                                float: left;
                                width: 18px;
                                height: 4px;
                                background: url(../images/delete_up.png) no-repeat;
                                background-size: 18px 4px;
                                /*过渡*/
                                transition: all .5s;
                                /*变换原点*/
                                transform-origin: right center;
                            }
                            .del-down {
                                float: left;
                                width: 18px;
                                height: 18px;
                                margin-top: -2px;
                                background: url(../images/delete_down.png) no-repeat;
                                background-size: 18px;
                            }
                        }
                        /*旋转类名*/
                        .open {
                            .del-up {
                                transform: rotate(30deg);
                            }
                        }
                    }
                }
            }
        }
    }
}

/*模态框*/
.win-box {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .3);
    .del-box {
        position: absolute;
        left: 10%;
        top: 50%;
        transform: translateY(-50%);
        width: 80%;
        background-color: #fff;
        border-radius: 10px;
        text-align: center;
        padding: 10px;
        p {
            font-size: 20px;
            height: 100px;
            line-height: 100px;
            border-bottom: 1px solid #ccc;
        }
        .btn-box {
            margin-top: 10px;
            a {
                width: 45%;
                height: 40px;
                border: 1px solid #ccc;
                border-radius: 10px;
                line-height: 38px;
            }
            .yes {
                background-color: red;
                color: #fff;
                border: none;
            }
        }
    }
}